---------------------------------------------------------------
-- @Copyright：           zour
-- @Description：         广告公共头文件[谨慎头文件循环加载，这里只能包含不需要 require<advert_def>的文件]

-- @modify time           2021-10-28
---------------------------------------------------------------
--=================================== lib files =====================================
require         =   require
type            =   type
coroutine       =   coroutine
debug           =   debug
io              =   io
pairs           =   pairs
ipairs          =   ipairs
print           =   print
rawget          =   rawget
rawset          =   rawset
select          =   select
pcall           =   pcall
xpcall          =   xpcall
tostring        =   tostring
tonumber        =   tonumber
unpack          =   unpack
setmetatable    =   setmetatable
getmetatable    =   getmetatable
error           =   error
assert          =   assert

os              =   os
os_time         =   os.time
os_date         =   os.date

ngx             =   ngx
ngx_shared      =   ngx.shared

string          =   string
string_char     =   string.char
string_sub      =   string.sub
string_byte     =   string.byte
string_gsub     =   string.gsub
string_find     =   string.find
string_upper    =   string.upper

math            =   math
math_fmod       =   math.fmod
math_floor      =   math.floor
math_pow        =   math.pow
math_abs        =   math.abs
math_random     =   math.random
math_randomseed =   math.randomseed
math_ceil       =   math.ceil

table           =   table
table_sort      =   table.sort
table_insert    =   table.insert

bit             =   bit
bit_band        =   bit.band

--=================================== frame files =====================================
ns_auth_comm_checker    =   require "modules.commhm.auth_comm_checker"
ns_time                 =   require 'modules.commhm.time'
ns_ssdbDcClient         =   require "modules.commhm.dc.ssdbDcClient"    ---dc
ns_mysqlDcClient        =   require "modules.commhm.dc.mysqlDcClient"   ---dc2  (推荐)
ns_redisDcClient        =   require "modules.commhm.dc.redisDcClient"   ---dc3  (不推荐，目前不成熟)
ns_shmDcClient          =   require "modules.commhm.dc.shmDcClient"     ---dc4
CNgxTimerWrap           =   require "modules.commhm.ngxTimerWrap" 
ns_const_vars           =   require "modules.commhm.const_vars"         ----统一常量库
ns_network              =   require "modules.commhm.network"
log                     =   require "modules.commhm.log"
uu                      =   require "modules.commhm.utils"
ns_lua_ConfigMgr        =   require "modules.center_server.luaConfigProxy"

cjson                   =   require "cjson.safe"

--=================================== advert files =====================================
serpent                 =   require "modules.business_advert.3rd.serpent"
ssdb                    =   require "modules.business_advert.3rd.ssdb"

ns_config               =   require "modules.business_advert.advert_config"
advert_code             =   require "modules.business_advert.advert_code"
biz_utils               =   require "modules.business_common.business_utils"
